<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%--JSP头部复用--%>
<jsp:include page="common/head.jsp" flush="true"></jsp:include>

<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <form action="/addbill" method="post">
            <div class="form-group">
                <label for="billCode">账单编码</label>
                <input type="text" class="form-control" id="billCode" name="billCode" aria-describedby="emailHelp"  style="width: 210%" required>
            </div>
            <div class="form-group">
                <label for="productName">商品名称</label>
                <input type="text" class="form-control" id="productName" name="productName" aria-describedby="emailHelp"  style="width: 210%" required>
            </div>
            <div class="form-group">
                <label for="productDesc">商品描述</label>
                <input type="text" class="form-control" id="productDesc" name="productDesc" aria-describedby="emailHelp"  style="width: 210%" required>
            </div>
            <div class="form-group">
                <label for="productUnit">商品单位</label>
                <input type="text" class="form-control" id="productUnit" name="productUnit" aria-describedby="emailHelp"  style="width: 210%" required>
            </div>
            <div class="form-group">
                <label for="productCount">商品数量</label>
                <input type="text" class="form-control" id="productCount" name="productCount" aria-describedby="emailHelp"  style="width: 210%" required>
            </div>
            <div class="form-group">
                <label for="totalPrice">商品总额</label>
                <input type="text" class="form-control" id="totalPrice" name="totalPrice" aria-describedby="emailHelp"  style="width: 210%" required>
            </div>
            <label>是否支付:</label>
            <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="isPayment" value="1" checked />
                <label class="form-check-label" >未支付</label>
            </div>
            <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="isPayment" value="2">
                <label class="form-check-label" >已支付</label>
            </div>
            <div class="form-group">
                <select id="proNameTest" name="proNameTest" class="form-control">
                    <c:if test="${providerName != null}">
                        <option value="">--选择供应商--</option>
                        <c:forEach var="proName" items="${providerName}">
                            <option value="${proName}">${proName}</option>
                        </c:forEach>
                    </c:if>
                </select>
            </div>

            <br>
            <button type="submit" class="btn btn-primary">确认添加</button>
            <a type="button" class="btn btn-warning" href="/providerList">放弃添加</a>
        </form>
    </div>
</main>
</div>
</div>
</body>
</html>
